import request from '@/utils/request'

// 获取分润列表
export const getProfitPrepareList = (data) => {
  return request({
    url: '/profitPrepare/list',
    method: 'get',
    params:data
  })
}

// 保存分润管理
export const addProfitPrepare = (data) => {
  return request({
    url: '/profitPrepare/setProfit',
    method: 'post',
    data: data
  })
}



// 修改分润管理
export const editProfitPrepare = (data) => {
  return request({
    url: '/profitPrepare/setProfit',
    method: 'put',
    data: data
  })
}

// 获取政策参考信息
export const getProfitPrepareReference = (id) => {
  return request({
    url: '/profitPrepare/reference',
    method: 'get'
  })
}



